package org.fengling.readingplatform.feign.novel;

import org.fengling.readingplatform.model.entity.novel.Novel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-novel")
public interface NovelFeignClient {

    @GetMapping(value="/api/novel/getNovel/{novelId}")
    public Novel getNovel(@PathVariable("novelId") Long novelId);
}
